package com.fangrui.mapper;

import com.fangrui.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2025/4/22 18:20.
//
@Mapper
public interface DeptMapper {

    public List<Dept> getAllDept();

    int deleteDept(Integer id);

    int deleteEmpByDeptId(Integer id);

    int addDept(Dept dept);

    Dept getDept(Integer id);

    int updateDept(Dept dept);

    Dept getDeptByName(String name);
}
